using System;
using System.Collections.Generic;

namespace MES.MVC.Models
{
    /// <summary>
    /// BOM信息模型
    /// </summary>
    public class BOM
    {
        /// <summary>
        /// BOM ID
        /// </summary>
        public int Id { get; set; }
        
        /// <summary>
        /// BOM编号
        /// </summary>
        public string BomCode { get; set; }
        
        /// <summary>
        /// BOM主题
        /// </summary>
        public string BomTopic { get; set; }
        
        /// <summary>
        /// BOM版本
        /// </summary>
        public string BomVersion { get; set; }
        
        /// <summary>
        /// 是否默认BOM
        /// </summary>
        public bool IsDefaultBom { get; set; }
        
        /// <summary>
        /// 商品ID
        /// </summary>
        public int GoodsId { get; set; }
        
        /// <summary>
        /// 日产量
        /// </summary>
        public int DayPlannum { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }
        
        /// <summary>
        /// 成品编号
        /// </summary>
        public string GoodsCode { get; set; }
        
        /// <summary>
        /// 成品名称
        /// </summary>
        public string GoodsName { get; set; }
        
        /// <summary>
        /// 商品类型
        /// </summary>
        public int GoodsType { get; set; }
        
        /// <summary>
        /// 商品状态
        /// </summary>
        public bool GoodsStatus { get; set; }
        
        /// <summary>
        /// 单件成本
        /// </summary>
        public decimal Oneprice { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
    
    /// <summary>
    /// BOM查询响应模型
    /// </summary>
    public class BOMQueryResponse
    {
        /// <summary>
        /// 响应代码
        /// </summary>
        public int Code { get; set; }
        
        /// <summary>
        /// 响应消息
        /// </summary>
        public string Message { get; set; }
        
        /// <summary>
        /// 响应数据
        /// </summary>
        public BOMQueryData Data { get; set; }
    }
    
    /// <summary>
    /// BOM查询数据模型
    /// </summary>
    public class BOMQueryData
    {
        /// <summary>
        /// 当前页码（从0开始）
        /// </summary>
        public int PageIndex { get; set; }
        
        /// <summary>
        /// 每页大小
        /// </summary>
        public int PageSize { get; set; }
        
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalCount { get; set; }
        
        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages { get; set; }
        
        /// <summary>
        /// BOM列表
        /// </summary>
        public List<BOM> List { get; set; }
    }
}
